package com.cz.video.website.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cz.video.common.core.domain.BaseEntity;
import com.cz.video.common.core.validate.AddGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Null;
import java.io.Serializable;

/**
 * <p>
 * 电影标签表
 * </p>
 *
 * @author 洪圆胜
 * @since 2023-10-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("website_media_tag")
@Schema(description="电影标签表")
public class WebsiteMediaTag extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "tag_id")
    @Null(groups = {AddGroup.class})
    private Long tagId;

    @Schema(description = "分类id")
    private Long categoryId;

    @Schema(description = "标签内容")
    @Length(max = 100,message = "标签内容不能超过{max}个字")
    private String content;

    @Schema(description = "状态")
    private String status;

    @Schema(description = "排序字段，越大越靠前")
    private Integer sort;

    @Schema(description = "备注")
    private String remark;


}
